# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=font-ubuntu
pkgver=0.869
pkgrel=0
pkgdesc="Ubuntu font family"
url="https://design.ubuntu.com/font/"
arch="noarch"
license="custom:Ubuntu Font License 1.0"
#source="https://assets.ubuntu.com/v1/fad7939b-ubuntu-font-family-$pkgver.zip
source="https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/fonts-ubuntu/$pkgver-0ubuntu1/fonts-ubuntu_$pkgver.orig.tar.gz
	81-ubuntu.conf
	"
options="!check" # No code to test
builddir="$srcdir/fonts-ubuntu-$pkgver"

package() {
	install -Dm644 ./*.ttf -t "$pkgdir"/usr/share/fonts/ubuntu
	install -Dm644 "$srcdir"/81-ubuntu.conf -t "$pkgdir"/usr/share/fontconfig/conf.avail/
	install -Dm644 LICENCE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENCE
}

sha512sums="
cc0b4bab12afc4acbb408fb565e3dd21a727869e0c944dc5105904137210f127d850d72440b5b843485e4fa4e9f2314e1b4335ed8159cf772746e97c8b4210d8  fonts-ubuntu_0.869.orig.tar.gz
e1db03108f47067e431dd37cdc7233d8783e27aeba4fc9a631745f3e38f438289ea5805cf095eace5fcd0225b11884f0b65ece43fc835cf38b5805bc13f76c2c  81-ubuntu.conf
"
